package com.jww.cloud.service.member.server.controller;

import com.jww.cloud.service.member.model.dos.JcMemberDO;
import com.jww.common.web.model.dto.Result;
import com.jww.common.web.util.ResultUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/members")
public class JcMemberController {

    @GetMapping("/{memberId}")
    public Result query(@PathVariable("memberId") Long memberId) {
        JcMemberDO jcMemberDO = new JcMemberDO();
        jcMemberDO.setId(memberId);
        jcMemberDO.setMemberName("123");
        jcMemberDO.setMemberCode("456");
        return ResultUtil.ok(jcMemberDO);
    }
}
